package com.eastcom.bm.service.impl;

import java.util.List;

import org.apache.log4j.Logger;

import com.eastcom.bm.atom.Atom_ActionJMSNotice;
import com.eastcom.bm.dao.DAOFactory;
import com.eastcom.bm.dao.IJMSNoticeDao;
import com.eastcom.bm.service.IJMSNoticeService;
import com.eastcom.common.db.JDBCTemplate;
import com.eastcom.providor.BMSetting;

public class JMSNoticeService implements IJMSNoticeService {

	private static Logger log = BMSetting.getBMlog();
	
	public List<Atom_ActionJMSNotice> getAllJMSNotice() {
		try{
			IJMSNoticeDao jmsNoticeDao=DAOFactory.getInstance().getJMSNoticeDao();
			return jmsNoticeDao.getAllJMSNotice();
		}
		catch(Exception e){
			log.error("IJMSNoticeService getAllJMSNotice error", e);
		}
		finally{
			JDBCTemplate.doSessionFinally();
		}
		
		return null;
	}

}
